#!/usr/bin/env bash

original=$(gsettings get org.gnome.desktop.session idle-delay | awk '{print $2}')
gsettings set org.gnome.desktop.session idle-delay 0

restore_settings() {
    gsettings set org.gnome.desktop.session idle-delay $original
	echo -e "\nrestore $original"
}

trap restore_settings EXIT

while true; do sleep 60; done

# vim: set ft=bash:
